package eu.integration;

/**
 * 传递的消息包
 * @author WZZ
 *
 */
public final class Package implements java.io.Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -8227113175550934278L;

	/**
	 * 消息
	 */
	private String message;
	
	/**
	 * 附加消息类型
	 */
	private Class<? extends Object> extClazz;
	
	/**
	 * 附加消息
	 */
	private Object extMessage;
	
	/**
	 * 消息来源, 必须由IB设置
	 */
	private int from;

	private int signal;
	
	public int getSignal() {
		return signal;
	}

	public void setSignal(int signal) {
		this.signal = signal;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Class<? extends Object> getExtClazz() {
		return extClazz;
	}

	public void setExtClazz(Class<? extends Object> extClazz) {
		this.extClazz = extClazz;
	}

	public Object getExtMessage() {
		return extMessage;
	}

	public void setExtMessage(Object extMessage) {
		this.extMessage = extMessage;
	}

	int getFrom() {
		return from;
	}

	void setFrom(int from) {
		this.from = from;
	}
	
	@Override
	public String toString() {
		return "Package [message=" + message + ", extClazz=" + extClazz
				+ ", extMessage=" + extMessage + ", from=" + from + ", signal="
				+ signal + "]";
	}
}
